aboutsummaryrefslogtreecommitdiffstats
path: root/loki-render [disowned]/watch-
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-07-06 07:27:43 +0200
committerMattias Andrée <maandree@kth.se>2018-07-06 07:27:43 +0200
commit1a1e50236687b869ad66d163a539494e4f2fcbd5 (patch)
treead26995991f63a944beddeb80ca883121414cc70 /loki-render [disowned]/watch-
parentUpdate sysvinit (diff)
downloadaur-packages-1a1e50236687b869ad66d163a539494e4f2fcbd5.tar.gz
aur-packages-1a1e50236687b869ad66d163a539494e4f2fcbd5.tar.bz2
aur-packages-1a1e50236687b869ad66d163a539494e4f2fcbd5.tar.xz
Disowned loki-render
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'loki-render [disowned]/watch-')
-rwxr-xr-xloki-render [disowned]/watch-21
1 files changed, 21 insertions, 0 deletions
diff --git a/loki-render [disowned]/watch- b/loki-render [disowned]/watch-
new file mode 100755
index 0000000..d7dd52c
--- /dev/null
+++ b/loki-render [disowned]/watch-
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ -f release ] && rm release
+
+wget 'http://loki-render.berlios.de/index.php/download' -O - 2>/dev/null | grep lokiRender > release
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'loki-render'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'loki-render (unfetchable)'
+fi
+